Download File
AutomatR.OneDriveApp.Activities.DownloadFile
The "Download File" activity in AutomatR is part of the OneDrive activities package, providing the capability to automate the download of files from Microsoft OneDrive. This activity streamlines the process of retrieving files from OneDrive, making it an essential component of automation workflows involving file transfers.
Properties
Name | Description |
---|---|
Input | |
Download To | Specifies the local path where the downloaded file should be saved. This represents the destination on the machine where the automation workflow is executed. String variables containing the local download path. |
File Name | Specifies the name of the file to be downloaded from OneDrive. This includes the file extension. String variables containing the file name. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in milliseconds) to wait before executing the "Download File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1. |
How to use:
- Drag and drop the "Download File" activity onto the workflow.
- Configure the properties by specifying the local download path ("Download To") and the name of the file to be downloaded from OneDrive ("File Name").
- Optionally, configure the delay and customize the display name.
- Execute the workflow to download the specified file from OneDrive to the local machine.
Example: Consider an example where the "Download File" activity is used to download a file named "presentation.pptx" from the "Presentations" directory in OneDrive to the local machine:
Download File:
Display Name: "Download Presentation"
Download To: "C:\Downloads\"
File Name: "presentation.pptx"
In this example, the activity downloads the file "presentation.pptx" from the specified path within the "Presentations" directory in OneDrive to the local path "C:\Downloads\". The display name is set to "Download Presentation" for clarity in the workflow.